package cc.chungkwong.mlkit;

import android.content.Intent;
import android.os.Bundle;

import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import com.google.mlkit.samples.nl.entityextraction.EntityExtractionActivity;
import com.google.mlkit.samples.nl.languageid.LanguageIdentificationActivity;
import com.google.mlkit.samples.nl.smartreply.ReplyActivity;
import com.google.mlkit.samples.nl.translate.TranslateActivity;
import com.google.mlkit.samples.vision.digitalink.DigitalInkMainActivity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.view.View;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }
    public void tryInkRecognizeClick(View v) {
        startActivity(new Intent(this,DigitalInkMainActivity.class));
    }
    public void tryLanguageIdentificationClick(View v) {
        startActivity(new Intent(this, LanguageIdentificationActivity.class));
    }
    public void tryTranslationClick(View v) {
        startActivity(new Intent(this, TranslateActivity.class));
    }
    public void tryEntityExtractionClick(View v) {
        startActivity(new Intent(this, EntityExtractionActivity.class));
    }
    public void tryReplyClick(View v) {
        startActivity(new Intent(this, ReplyActivity.class));
    }
}